let output_s16 oz n = if n < -0x8000 || n > 0x7FFF then raise (Invalid_argument "Bgzf.output_s16") ; if n < 0 then output_u16 oz (65536 + n) else output_u16 oz n