Lines Matching refs:CLAMP
743 #define CLAMP(x) (((x) > 32767) ? 32767 : x) macro
771 0 : CLAMP(constant->length); in SDL_SYS_ToFFEffect()
772 dest->replay.delay = CLAMP(constant->delay); in SDL_SYS_ToFFEffect()
776 dest->trigger.interval = CLAMP(constant->interval); in SDL_SYS_ToFFEffect()
783 CLAMP(constant->attack_length); in SDL_SYS_ToFFEffect()
785 CLAMP(constant->attack_level); in SDL_SYS_ToFFEffect()
786 dest->u.constant.envelope.fade_length = CLAMP(constant->fade_length); in SDL_SYS_ToFFEffect()
787 dest->u.constant.envelope.fade_level = CLAMP(constant->fade_level); in SDL_SYS_ToFFEffect()
806 0 : CLAMP(periodic->length); in SDL_SYS_ToFFEffect()
807 dest->replay.delay = CLAMP(periodic->delay); in SDL_SYS_ToFFEffect()
811 dest->trigger.interval = CLAMP(periodic->interval); in SDL_SYS_ToFFEffect()
825 dest->u.periodic.period = CLAMP(periodic->period); in SDL_SYS_ToFFEffect()
833 CLAMP(periodic->attack_length); in SDL_SYS_ToFFEffect()
835 CLAMP(periodic->attack_level); in SDL_SYS_ToFFEffect()
836 dest->u.periodic.envelope.fade_length = CLAMP(periodic->fade_length); in SDL_SYS_ToFFEffect()
837 dest->u.periodic.envelope.fade_level = CLAMP(periodic->fade_level); in SDL_SYS_ToFFEffect()
860 0 : CLAMP(condition->length); in SDL_SYS_ToFFEffect()
861 dest->replay.delay = CLAMP(condition->delay); in SDL_SYS_ToFFEffect()
865 dest->trigger.interval = CLAMP(condition->interval); in SDL_SYS_ToFFEffect()
899 0 : CLAMP(ramp->length); in SDL_SYS_ToFFEffect()
900 dest->replay.delay = CLAMP(ramp->delay); in SDL_SYS_ToFFEffect()
904 dest->trigger.interval = CLAMP(ramp->interval); in SDL_SYS_ToFFEffect()
911 dest->u.ramp.envelope.attack_length = CLAMP(ramp->attack_length); in SDL_SYS_ToFFEffect()
912 dest->u.ramp.envelope.attack_level = CLAMP(ramp->attack_level); in SDL_SYS_ToFFEffect()
913 dest->u.ramp.envelope.fade_length = CLAMP(ramp->fade_length); in SDL_SYS_ToFFEffect()
914 dest->u.ramp.envelope.fade_level = CLAMP(ramp->fade_level); in SDL_SYS_ToFFEffect()
927 0 : CLAMP(leftright->length); in SDL_SYS_ToFFEffect()
934 dest->u.rumble.strong_magnitude = CLAMP(leftright->large_magnitude) * 2; in SDL_SYS_ToFFEffect()
935 dest->u.rumble.weak_magnitude = CLAMP(leftright->small_magnitude) * 2; in SDL_SYS_ToFFEffect()