Magnetic hysteresis in rapidly quenched rare-earth alloys