Lines Matching defs:adj
392 #define CONV_HRESTIME(hrestsec, hrestnsec, adj, nslt, nano) \
393 brz,pt adj, 3f; /* no adjustments, it's easy */ \
395 brlz,pn adj, 2f; /* if hrestime_adj negative */ \
397 subcc adj, nslt, %g0; /* hrestime_adj - nslt/16 */ \
398 movg %xcc, nslt, adj; /* adj by min(adj, nslt/16) */ \
400 add hrestnsec, adj, hrestnsec; /* delay: apply adjustment */ \
401 2: addcc adj, nslt, %g0; /* hrestime_adj + nslt/16 */ \
402 bge,a,pt %xcc, 3f; /* is adj less negative? */ \
403 add hrestnsec, adj, hrestnsec; /* yes: hrest.nsec += adj */ \
559 clr %l5 ! delay: set adj to zero
562 srl %i1, ADJ_SHIFT, %l5 ! delay: %l5 = adj
564 addcc %l0, %l5, %g0 ! hrestime_adj < -adj ?
565 bl,pt %xcc, 2f ! yes, use current adj
566 neg %l5 ! delay: %l5 = -adj
568 mov %l0, %l5 ! no, so set adj = hrestime_adj
570 subcc %l0, %l5, %g0 ! hrestime_adj < adj ?
571 bl,a,pt %xcc, 2f ! yes, set adj = hrestime_adj
572 mov %l0, %l5 ! delay: adj = hrestime_adj
575 sub %l0, %l5, %l0 ! timedelta -= adj
583 add %i3, %l5, %i3 ! hrestime.nsec += adj