Skip to content

Commit

Permalink
Update Chunks.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Captian-obvious authored Dec 4, 2023
1 parent 1ca4e19 commit be91330
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Chunks.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ def extract(number, field, width):
mask = (1 << width) - 1
return (number >> field) & mask
##end
# Example usage:
number = 0b110110101010
offset = 2
width = 4
result = extract_bits(number, offset, width)
print(result)
def conditionalSet(condition,val1,val2):
if ((condition)==True):
return val1
Expand Down

0 comments on commit be91330

Please sign in to comment.