crypto crypto-openssl: support hashing operations
[vpp.git] / src / vppinfra / fifo.c
index 5b4c76d..52d65ae 100644 (file)
@@ -76,7 +76,7 @@
    fifo_free (f) frees fifo.
 */
 
-void *
+__clib_export void *
 _clib_fifo_resize (void *v_old, uword n_new_elts, uword elt_bytes)
 {
   void *v_new, *end, *head;
@@ -112,16 +112,16 @@ _clib_fifo_resize (void *v_old, uword n_new_elts, uword elt_bytes)
       if (head + n_copy_bytes >= end)
        {
          uword n = end - head;
-         clib_memcpy (v_new, head, n);
-         clib_memcpy (v_new + n, v_old, n_copy_bytes - n);
+         clib_memcpy_fast (v_new, head, n);
+         clib_memcpy_fast (v_new + n, v_old, n_copy_bytes - n);
        }
       else
-       clib_memcpy (v_new, head, n_copy_bytes);
+       clib_memcpy_fast (v_new, head, n_copy_bytes);
     }
 
   /* Zero empty space. */
   n_zero_bytes = (n_new_elts - n_old_elts) * elt_bytes;
-  memset (v_new + n_copy_bytes, 0, n_zero_bytes);
+  clib_memset (v_new + n_copy_bytes, 0, n_zero_bytes);
 
   clib_fifo_free (v_old);