#define ZGEMM_DEFAULT_UNROLL_M 2
#define ZGEMM_DEFAULT_UNROLL_N 2
-#if defined(OS_LINUX) || defined(OS_DARWIN)
+#if defined(OS_LINUX) || defined(OS_DARWIN) || defined(OS_FREEBSD)
#if L2_SIZE == 1024976
#define SGEMM_DEFAULT_P 320
#define DGEMM_DEFAULT_P 256
#define ZGEMM_DEFAULT_UNROLL_M 8
#define ZGEMM_DEFAULT_UNROLL_N 2
-#define SGEMM_DEFAULT_P 640
+#define SGEMM_DEFAULT_P 832
#define DGEMM_DEFAULT_P 128
-#define CGEMM_DEFAULT_P 640
-#define ZGEMM_DEFAULT_P 512
+#define CGEMM_DEFAULT_P 512
+#define ZGEMM_DEFAULT_P 256
-#define SGEMM_DEFAULT_Q 1408
+#define SGEMM_DEFAULT_Q 1026
#define DGEMM_DEFAULT_Q 384
-#define CGEMM_DEFAULT_Q 640
-#define ZGEMM_DEFAULT_Q 1152
+#define CGEMM_DEFAULT_Q 1026
+#define ZGEMM_DEFAULT_Q 1026
#define SYMV_P 8