Class: Ragweed::Wraposx::FpStatus

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/ragweed/wraposx/structs.rb

Instance Method Summary collapse

Instance Method Details

#busyObject



84
85
86
# File 'lib/ragweed/wraposx/structs.rb', line 84

def busy
  self.value & 1
end

#c0Object



69
70
71
# File 'lib/ragweed/wraposx/structs.rb', line 69

def c0
  (self.value >> 7) & 1
end

#c1Object



72
73
74
# File 'lib/ragweed/wraposx/structs.rb', line 72

def c1
  (self.value >> 6) & 1
end

#c2Object



75
76
77
# File 'lib/ragweed/wraposx/structs.rb', line 75

def c2
  (self.value >> 5) & 1
end

#denormObject



48
49
50
# File 'lib/ragweed/wraposx/structs.rb', line 48

def denorm
  (self.value >> 14) & 1
end

#errsummObject



66
67
68
# File 'lib/ragweed/wraposx/structs.rb', line 66

def errsumm
  (self.value >> 8) & 1
end

#invalidObject



45
46
47
# File 'lib/ragweed/wraposx/structs.rb', line 45

def invalid
  self.value >> 15
end

#ovrflObject



54
55
56
# File 'lib/ragweed/wraposx/structs.rb', line 54

def ovrfl
  (self.value >> 12) & 1
end

#precisObject



60
61
62
# File 'lib/ragweed/wraposx/structs.rb', line 60

def precis
  (self.value >> 10) & 1
end

#stkfltObject



63
64
65
# File 'lib/ragweed/wraposx/structs.rb', line 63

def stkflt
  (self.value >> 9) & 1
end

#tosObject



78
79
80
# File 'lib/ragweed/wraposx/structs.rb', line 78

def tos
  (self.value >> 2) & 7
end

#undflObject



57
58
59
# File 'lib/ragweed/wraposx/structs.rb', line 57

def undfl
  (self.value >> 11) & 1
end

#zdivObject



51
52
53
# File 'lib/ragweed/wraposx/structs.rb', line 51

def zdiv
  (self.value >> 13) & 1
end